package team.seekers.catering.entity.dataobject;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author hbc
 * @since 2022-02-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="COrder对象", description="订单表")
@TableName("c_order")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

      @TableField("u_id")
    private String userId;

    @ApiModelProperty(value = "线下叫号单号")
      private Integer showId;

    @TableField("f_id")
    private String foodId;

    @ApiModelProperty(value = "订单状态（已下单0，已完成1）")
    private Integer status;

    private Integer isDelete;

    private Date endDate;

      @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

      @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;


}
